package com.example.b_308.myapplication.view.splash;

import android.content.Intent;
import android.os.CountDownTimer;
import android.os.Bundle;
import android.view.View;

import com.example.b_308.myapplication.R;
import com.example.b_308.myapplication.controller.SplashController;
import com.example.b_308.myapplication.view.base.BaseActivity;
import com.example.b_308.myapplication.view.user.LoginActivity;

import java.util.List;

public class SplashActivity extends BaseActivity implements ISplashView{
    SplashController splashController;
    CountDownTimer countDownTimer=new CountDownTimer(2000,1000) {
        @Override
        public void onTick(long l) {

        }

        @Override
        public void onFinish() {
//          startActivity(new Intent(SplashActivity.this, LoginActivity.class));
            tentTo(LoginActivity.class);

        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getTitleBar().setVisibility(View.GONE);
        setContentView(R.layout.activity_splash);
        splashController =new SplashController(this);
        splashController.check();
        countDownTimer.start();
    }


    @Override
    public void haveNewVersion() {

    }

    @Override
    public void isFirstUsed() {

    }

    @Override
    public void haveUnAblePermission(List<String> permissions) {

    }

    @Override
    public void checkSuccess() {


    }

    @Override
    public void onFail(String message) {

    }
}
